import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Vuetify from 'vuetify'
import config from './config'
import 'vuetify/dist/vuetify.min.css'
import store from './store'
import Element from 'element-ui'
import "element-ui/lib/theme-chalk/index.css"
import axios from 'axios'
import qs from 'qs'
import vueToPdf from 'vue-to-pdf';
import VueEasyPrinter from 'vue-easy-printer';

Vue.prototype.$qs=qs
Vue.use(vueToPdf);
Vue.use(VueEasyPrinter);
// import mavonEditor from 'mavon-editor'
// import 'mavon-editor/dist/css/index.css'

// Vue.use(Element)
// Vue.use(mavonEditor)

import "./axios"
Vue.prototype.$axios = axios //

// var axios = require('axios')
axios.defaults.baseURL = 'http://localhost:9999'
global.axios=axios;
axios.defaults.headers.post['Content-Type'] = 'application/json';

Vue.use(Vuetify, { theme: config.theme})


Vue.use(Element)
Vue.config.productionTip = false


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

